Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: audit fixes #12

Merged
merged 11 commits into from
May 23, 2024
Merged

fix: audit fixes #12

merged 11 commits into from
May 23, 2024

Conversation

Schlagonia
Copy link
Collaborator

No description provided.

// Transfer the role manager position.
IVault(_vault).transfer_role_manager(chad);

// Address of the vault to replace it with.
address vaultToMove = vaults[vaults.length - 1];

// Get the vault specific config.
VaultConfig memory config = vaultConfig[_vault];
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function uses index, asset and rollupID from the config

I can test but assumed storing the 2 slots in memory is cheaper than pulling from storage 3 times

@Schlagonia Schlagonia merged commit d8881fb into master May 23, 2024
2 checks passed
@Schlagonia Schlagonia deleted the audit_fix branch May 23, 2024 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants